%percentage of edge of image
function [ratio]= ProcessEdge(name)
    data = imread(name);
    gray = rgb2gray(data);
    gray = medfilt2(gray,[3,3]);
    BW = edge(gray,'canny');
    imshow(BW);
    ratio = sum(BW(:))/size(gray(:),1);